package com.cxb.entity;


import android.content.Intent;
import android.graphics.Color;
import android.view.View;

/**
* @ClassName: SettingButtonInfo
* @Description: 设置界面按钮信息
* @author 杨瑜 45154139@qq.com
* @date 2013-9-26 上午9:45:43
* 
*/
public class SettingButtonInfo {

	private String name;
	private int _color = Color.WHITE;
	private float _textsize = 14f;
	private int textX = 37, textY = 20;
	private int res;
	private Intent i;
	private String eventName;
	private ItemOnClickListener itemOnClickListener;
	public String getEventName() {
		return eventName;
	}

	public void setEventName(String eventName) {
		this.eventName = eventName;
	}

	/**
	* <p>Title: </p>
	* <p>Description: </p>
	* @param name  按钮名称
	* @param res	按钮图片
	* @param i	按钮事件
	*/
	public SettingButtonInfo(String name, int res, Intent i,String eventName) {
		super();
		this.name = name;
		this.res = res;
		this.i = i;
		this.eventName=eventName;
	}
	
	public SettingButtonInfo(String name, int res, Intent i,String eventName, ItemOnClickListener itemOnClickListener) {
		super();
		this.name = name;
		this.res = res;
		this.i = i;
		this.eventName=eventName;
		this.itemOnClickListener = itemOnClickListener;
	}

	public String getName() {
		return name;
	}

	public int getColor() {
		return _color;
	}

	public float getTextSize() {
		return _textsize;
	}

	public int getTextX() {
		return textX;
	}

	public int getTextY() {
		return textY;
	}

	public int getRes() {
		return res;
	}

	public Intent getIntent() {
		return i;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	public ItemOnClickListener getItemOnClickListener() {
		return itemOnClickListener;
	}

	public interface ItemOnClickListener{
		public void onItemClick(View view, int index);
	}
}
